package com.example.conference.service;

import com.example.conference.domain.Course;
import com.example.conference.mapper.DeptMapper;
import com.example.conference.mapper.RoleMapper;
import com.example.conference.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptAndRoleServiceImpl {
    @Autowired
    RoleMapper roleMapper;
    @Autowired
    DeptMapper deptMapper;

    public Result queryRole(){
        return Result.success().data("items",roleMapper.queryAll());
    }
    public Result queryDept(){
        return Result.success().data("items",deptMapper.queryAll());
    }
}
